<HTML><HEAD><TITLE>post_typed_pool_constraint(+Pool, +Type, +Constraint)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(constraint_pools)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>post_typed_pool_constraint(+Pool, +Type, +Constraint)</H1>
Stores the term Constraint in Pool's constraint store as type Type
<DL>
<DT><EM>Pool</EM></DT>
<DD>Atom
</DD>
<DT><EM>Type</EM></DT>
<DD>Integer
</DD>
<DT><EM>Constraint</EM></DT>
<DD>Callable Term
</DD>
</DL>
<H2>Description</H2>

    Stores the term Constraint in Pool's constraint store as type Type.
    Constraint is not interpreted in any way, it is just stored in order
    to be retrieved later using one of the retrieval predicates.
    
<H2>Examples</H2>
<PRE>    ?- create_constraint_pool(p, 3, []).
    Yes (0.09s cpu)

    ?- post_typed_pool_constraint(p, 1, foo(one)),
	    post_typed_pool_constraint(p, 2, bar(two)),
	    post_typed_pool_constraint(p, 1, baz(three)),
	    get_typed_pool_constraints(p, 1, C1),
	    get_typed_pool_constraints(p, 2, C2).
	    get_typed_pool_constraints(p, 3, C3).

    C1 = [baz(three), foo(one)]
    C2 = [bar(two)]
    C3 = []
    Yes (0.00s cpu)
    </PRE>
<H2>See Also</H2>
<A HREF="../../lib/constraint_pools/collect_typed_pool_constraints-3.html">collect_typed_pool_constraints / 3</A>, <A HREF="../../lib/constraint_pools/collect_all_pool_constraints-2.html">collect_all_pool_constraints / 2</A>, <A HREF="../../lib/constraint_pools/set_typed_pool_constraints-3.html">set_typed_pool_constraints / 3</A>, <A HREF="../../lib/constraint_pools/get_all_pool_constraints-2.html">get_all_pool_constraints / 2</A>
</BODY></HTML>
